/**
 * FileName: AirETicketsService
 * Author:   Leopold
 * Date:     2018/9/11 19:59
 * Description:
 * History:
 */
package cn.mcsys.myadmin.modules.viewer.service;

import cn.mcsys.myadmin.modules.viewer.entity.AirETickets;
import cn.mcsys.myadmin.modules.viewer.entity.AirRideQrCode;
import cn.mcsys.myadmin.modules.viewer.entity.AirTickets;
import cn.mcsys.myadmin.modules.viewer.entity.AirViewerUser;

import java.util.List;

public interface AirETicketsService {

    List<AirETickets> selectByUserId(Long id);

    /**
     * 根据证件类型和证件号查询对应的航展票
     * @param type
     * @param number
     * @return
     */
    List<AirTickets> selectByTypeAndNumber(int type,String number);

    void saveETicket(List<AirTickets> airTickets, AirViewerUser user);

    List<AirETickets> selectByManyId(Long[] eTicketsId);

    void setQrCodeId(Long[] airETickets, AirRideQrCode airRideQrCode);

    List<AirETickets> selectMyAllETickets(Long id);

    List<Long> selectByQrcodeId(Long qrcodeId);

    void batchUpdateQrcodeId(List<Long> airETicketIds);
}
